package ro.isdc.training.ejb3.course.service;

import java.rmi.Remote;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;

import ro.isdc.training.ejb3.course.service.domain.ReadCourseRequest;
import ro.isdc.training.ejb3.course.service.domain.ReadCourseResponse;

/**
 * Course web service endpoint interface.
 * 
 * @author Andrei Chirila
 */
@WebService
@SOAPBinding(style=Style.RPC)
public interface CourseService extends Remote {
  /**
   * Service that reads a course.
   * 
   * @param serviceRequest the service request
   * @return the service response
   */
  @WebMethod
  ReadCourseResponse readCourse(ReadCourseRequest serviceRequest);
}
